<!DOCTYPE html>
<html mip>
<head>
    <meta charset="utf-8">
    <meta name="applicable-device" content="mobile">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
    <title>{block name='mipTitle'}{$mipTitle}{/block}</title>
    <meta name="keywords" content="{block name='mipKeywords'}{$mipKeywords}{/block}">
    <meta name="description" content="{block name='mipDescription'}{$mipDescription}{/block}">
    <link rel="shortcut icon" href="{$domainStatic}/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="https://c.mipcdn.com/static/v1/mip.css">
    <link rel="stylesheet" type="text/css" href="{$domainStatic}/{$assets}/{$tplName}/css/nicemip-m.css">
    <link rel="canonical" href="{$siteUrl}">

    <style mip-custom>
    
    {block name="style"}{/block}

    .mui-bar-nav .mui-title{
        color: #337ab7;
        color: <?php echo $mipInfo['siteColor'];?>;
        text-align: left;
        margin-left: 55px;
    }

   
    footer p{
        width:100%;
        position:fixed;
        bottom:0;
        left:0;
    }
    .ct{  
        position:relative;
        width:100%;
        height:22px;
        background:#FFFFFF;
        border-left: #337ab7;
        border-left:5px solid <?php echo $mipInfo['siteColor'];?>;
        margin-left: 10px;
        margin-top: 20px;
        margin-bottom: 10px;        
    }
    .ct p{
        font-size: 18px;
        padding-top: 2px;
        padding-left: 4px;
    }
    body{
        background-color: #FFFFFF;
    }
    .text-center{
        background-color: #efeff4;
    }
    
    .title{
        font-weight:bold;
    }
    #sideul button{
        padding: 2px 8px;
        float: right;
        margin-right: 2px;
    }
    #sideul li a{
        color: #666666;
        font-size: 16px;
    }
    #sidebar{
        top:44px;
        width: 50%;
        background: rgba(255,255,255,.8);
    }

    .mip-title{
        border-left: 5px solid 337ab7;
        border-left: 5px solid <?php echo $mipInfo['siteColor'];?>;
        margin-left: 9px;
    }

    .nicemip-back .home {
      display: inline-block;
      height: 40px;
      width: 98px;
      background: url(/uploads/<?php echo $mipInfo['siteLogo'];?>) no-repeat;
      background-size: 50%;
    }

    .pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover{
        background-color: #337ab7; 
        border-color: #337ab7;
        background-color: <?php echo $mipInfo['siteColor'];?>;
        border-color: <?php echo $mipInfo['siteColor'];?>;
    }
    </style>
</head>
<body>
{if condition='$mipInfo["guanfanghaoStatus"]'}{$mipInfo['guanfanghaoCambrian']}{/if}
<mip-fixed type="top">
<header class="mip-nav-wrapper mui-bar-nav">
    {if condition='$act=="articleDetail"'}
    <mip-history history="back" class="mip-history-default nicemip-back">
        <span class="back"></span>
    </mip-history>
    {else/}
     <a data-type="mip" data-title='首页' href="{$domain}" class="nicemip-back">
        <label class="home"></mip-img></label> 
    </a>
    {/if}
    <h1 class="mui-title">{$mipInfo['siteName']}</h1>
    <div id='tabWrap'>
        <label id='sideMenuControl' for='sidemenu'>
            <div id="logo"><mip-img  class="tab" on="tap:sidebar.open" src="../public/assets/ms/images/tab.png" layout="responsive"></mip-img></div>
        </label>
    </div>
</header>
</mip-fixed>
<mip-sidebar 
    id="sidebar"
    layout="nodisplay"
    class="mip-hidden">

    <ul id="sideul">
        <li>
            <a data-type="mip" href="{$domain}">首页</a>
            <button on="tap:sidebar.close"> X </button>
        </li>
        {nicemip:articlecategory value="val"}
        {nicemip:articleinfo value="vs" cid='$val["id"]' limit='2' /}
            {if condition="count($vs) > 1"}
                <li><a data-type="mip"  href="{$val['url']}" >
                    {$val['name']}
                </a></li>
            {else/} 
                {nicemip:article value="v" cid='$val["id"]' limit='1' }{/nicemip:article}
                <li> <a data-type="mip"  href="{$v['url']}" >
                   {$val['name']}
                </a></li>
            {/if} 
        {/nicemip:articlecategory}
         <li>
            <a href="{$domain}admin" target="_blank" title='登录'>登录</a>
        </li>
        <!-- <li>
            <a href="http://zhannei.baidu.com/cse/search?s={$mipInfo['biaduZn']}" target="_blank" title='搜索'>搜索</a>
        </li> -->
      
       
    </ul>
</mip-sidebar>
<main class="nice-main" id="nice-main">
  {block name="main"}{/block}
</main>

<footer>
    <p class="text-center">&copy;<?php echo date('Y'); ?> {$mipInfo['siteCopyright']}{$mipInfo['statistical']} </p>
</footer>

<mip-fixed type="gototop">
    <mip-gototop></mip-gototop>
</mip-fixed>

<!-- <input type='checkbox' id='sidemenu'/>
<div class="aside">
    <ul id="sideul">

        <a data-type="mip" href="{$domain}">
            <li>首页</li>
        </a>
        {nicemip:articlecategory value="val"}

        <a data-type="mip" href="{$val['url']}">

            <li>{$val['name']}</li>

        </a>

        {nicemip:articleinfo value="vs" cid='$val["id"]' limit='2' /}
            {if condition="count($vs) > 1"}
                <a data-type="mip"  href="{$val['url']}" >
                    <li>{$val['name']}</li>
                </a>
            {else/} 
                {nicemip:article value="v" cid='$val["id"]' limit='1' }{/nicemip:article}
                <a data-type="mip"  href="{$v['url']}" >
                    <li>{$val['name']}</li>
                </a>
            {/if} 

        {/nicemip:articlecategory}
    </ul>
</div> -->
{block name="script"}
<script src="https://c.mipcdn.com/static/v1/mip.js"></script>
<script src="https://c.mipcdn.com/static/v1/mip-stats-baidu/mip-stats-baidu.js"></script>
<script src="https://c.mipcdn.com/static/v1/mip-sidebar/mip-sidebar.js"></script>
<script src="https://c.mipcdn.com/static/v1/mip-gototop/mip-gototop.js" type="text/javascript" charset="utf-8"></script>
<script src="https://c.mipcdn.com/static/v1/mip-history/mip-history.js" type="text/javascript" charset="utf-8"></script>
<script src="https://c.mipcdn.com/static/v1/mip-fixed/mip-fixed.js" type="text/javascript" charset="utf-8"></script>
<script src="https://c.mipcdn.com/extensions/platform/v1/mip-cambrian/mip-cambrian.js"></script>
{/block}
</body>
</html>